﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000FF5 RID: 4085
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class RogueTournDifficultyInfo : IMessage<RogueTournDifficultyInfo>, IMessage, IEquatable<RogueTournDifficultyInfo>, IDeepCloneable<RogueTournDifficultyInfo>, IBufferMessage
	{
		// Token: 0x170033AF RID: 13231
		// (get) Token: 0x0600B6BD RID: 46781 RVA: 0x001ED619 File Offset: 0x001EB819
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<RogueTournDifficultyInfo> Parser
		{
			get
			{
				return RogueTournDifficultyInfo._parser;
			}
		}

		// Token: 0x170033B0 RID: 13232
		// (get) Token: 0x0600B6BE RID: 46782 RVA: 0x001ED620 File Offset: 0x001EB820
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return RogueTournDifficultyInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170033B1 RID: 13233
		// (get) Token: 0x0600B6BF RID: 46783 RVA: 0x001ED632 File Offset: 0x001EB832
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return RogueTournDifficultyInfo.Descriptor;
			}
		}

		// Token: 0x0600B6C0 RID: 46784 RVA: 0x001ED639 File Offset: 0x001EB839
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournDifficultyInfo()
		{
		}

		// Token: 0x0600B6C1 RID: 46785 RVA: 0x001ED641 File Offset: 0x001EB841
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournDifficultyInfo(RogueTournDifficultyInfo other) : this()
		{
			this.difficultyId_ = other.difficultyId_;
			this.isUnlocked_ = other.isUnlocked_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600B6C2 RID: 46786 RVA: 0x001ED672 File Offset: 0x001EB872
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueTournDifficultyInfo Clone()
		{
			return new RogueTournDifficultyInfo(this);
		}

		// Token: 0x170033B2 RID: 13234
		// (get) Token: 0x0600B6C3 RID: 46787 RVA: 0x001ED67A File Offset: 0x001EB87A
		// (set) Token: 0x0600B6C4 RID: 46788 RVA: 0x001ED682 File Offset: 0x001EB882
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint DifficultyId
		{
			get
			{
				return this.difficultyId_;
			}
			set
			{
				this.difficultyId_ = value;
			}
		}

		// Token: 0x170033B3 RID: 13235
		// (get) Token: 0x0600B6C5 RID: 46789 RVA: 0x001ED68B File Offset: 0x001EB88B
		// (set) Token: 0x0600B6C6 RID: 46790 RVA: 0x001ED693 File Offset: 0x001EB893
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool IsUnlocked
		{
			get
			{
				return this.isUnlocked_;
			}
			set
			{
				this.isUnlocked_ = value;
			}
		}

		// Token: 0x0600B6C7 RID: 46791 RVA: 0x001ED69C File Offset: 0x001EB89C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as RogueTournDifficultyInfo);
		}

		// Token: 0x0600B6C8 RID: 46792 RVA: 0x001ED6AA File Offset: 0x001EB8AA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(RogueTournDifficultyInfo other)
		{
			return other != null && (other == this || (this.DifficultyId == other.DifficultyId && this.IsUnlocked == other.IsUnlocked && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600B6C9 RID: 46793 RVA: 0x001ED6E8 File Offset: 0x001EB8E8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.DifficultyId != 0U)
			{
				num ^= this.DifficultyId.GetHashCode();
			}
			if (this.IsUnlocked)
			{
				num ^= this.IsUnlocked.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600B6CA RID: 46794 RVA: 0x001ED740 File Offset: 0x001EB940
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600B6CB RID: 46795 RVA: 0x001ED748 File Offset: 0x001EB948
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600B6CC RID: 46796 RVA: 0x001ED754 File Offset: 0x001EB954
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.IsUnlocked)
			{
				output.WriteRawTag(40);
				output.WriteBool(this.IsUnlocked);
			}
			if (this.DifficultyId != 0U)
			{
				output.WriteRawTag(96);
				output.WriteUInt32(this.DifficultyId);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600B6CD RID: 46797 RVA: 0x001ED7B0 File Offset: 0x001EB9B0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.DifficultyId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.DifficultyId);
			}
			if (this.IsUnlocked)
			{
				num += 2;
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600B6CE RID: 46798 RVA: 0x001ED7FC File Offset: 0x001EB9FC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(RogueTournDifficultyInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.DifficultyId != 0U)
			{
				this.DifficultyId = other.DifficultyId;
			}
			if (other.IsUnlocked)
			{
				this.IsUnlocked = other.IsUnlocked;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600B6CF RID: 46799 RVA: 0x001ED84C File Offset: 0x001EBA4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600B6D0 RID: 46800 RVA: 0x001ED858 File Offset: 0x001EBA58
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					if (num != 96U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.DifficultyId = input.ReadUInt32();
					}
				}
				else
				{
					this.IsUnlocked = input.ReadBool();
				}
			}
		}

		// Token: 0x040049D8 RID: 18904
		private static readonly MessageParser<RogueTournDifficultyInfo> _parser = new MessageParser<RogueTournDifficultyInfo>(() => new RogueTournDifficultyInfo());

		// Token: 0x040049D9 RID: 18905
		private UnknownFieldSet _unknownFields;

		// Token: 0x040049DA RID: 18906
		public const int DifficultyIdFieldNumber = 12;

		// Token: 0x040049DB RID: 18907
		private uint difficultyId_;

		// Token: 0x040049DC RID: 18908
		public const int IsUnlockedFieldNumber = 5;

		// Token: 0x040049DD RID: 18909
		private bool isUnlocked_;
	}
}
